from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^simpleblog/$', 'simpleblog.dblog.views.index'),
    (r'^simpleblog/writeBlog/$', 'simpleblog.dblog.views.writeBlog'),
    (r'^simpleblog/blog/postEntry/$', 'simpleblog.dblog.views.postEntry'),
    (r'^simpleblog/blog/(?P<blog_id>\d+)/$', 'simpleblog.dblog.views.readBlog'),
    (r'^simpleblog/blog/(?P<blog_id>\d+)/comment/$', 'simpleblog.dblog.views.comment'),
    (r'^simpleblog/blog/(?P<blog_id>\d+)/comment/add/$', 
                             'simpleblog.dblog.views.addComment'),
    (r'^simpleblog/blog/(?P<blog_id>\d+)/postComment/$', 
                             'simpleblog.dblog.views.postComment'),
    (r'^scripts/(?P<path>.*)$', 'django.views.static.serve', 
                                 {'document_root': './scripts'}),
    (r'^admin/', include('django.contrib.admin.urls')),
)
